package com.lq.test;

import com.lq.entity.User;
import com.lq.service.UserService;
import com.lq.utils.AppConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Ce {


    public static void main(String[] args) {
        ApplicationContext app = new AnnotationConfigApplicationContext(AppConfig.class);
        UserService users = app.getBean(UserService.class);
        String user = users.getUser(new User().setName("贾闲").setAge("18"));
        System.out.println(user);
    }


}
